package com.zxd.service;

import com.zxd.entity.File;
import com.zxd.entity.vo.BaseVo;
import com.zxd.service.common.ICommonService;
import org.springframework.web.multipart.MultipartRequest;

import javax.servlet.http.HttpServletRequest;

/**
 * ImageService
 * Created by 涂奕恒 on 2017/10/18 20:01.
 */
public interface FileService extends ICommonService<File> {

    // 上传文档
    BaseVo uploadFile(HttpServletRequest request, MultipartRequest multipartRequest);

    // 查询文件列表（分页）
    BaseVo getData(String keyWord, Integer groupId, Integer pageNum, Integer pageSize);

    // 保存文件信息
    Integer saveInfo(HttpServletRequest request, MultipartRequest multipartRequest, Integer groupId);

    // 批量删除文件信息
    Integer batchDel(String ids);
}